<template>
  <div class="tabbar">
    <van-nav-bar
  :title="title||'返回'"
  left-text="返回"
  left-arrow
  :fixed="true"
  @click-left="onClickLeft"
/>
  </div>
</template>

<script>
export default {
  name: 'NavCom',
  props: ['title'],
  setup (props) {
    console.log(props)
    const onClickLeft = () => history.back()
    return {
      onClickLeft
    }
  }
}
</script>

<style lang="scss" scoped>
.tabbar{
  margin-bottom: 90px;
}
</style>
